package com.lcfc.nre.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author vxot
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("attachment_affiliation")
public class AttachmentAffiliation extends Model<AttachmentAffiliation> {

    private static final long serialVersionUID = 1L;

    /**
     * 属于哪个对象类型
     */
    private String className;

    private Integer objectId;

    /**
     * file_id
     */
    private Long fileId;

    private String fileType;

    /**
     * 系统自增长ID
     */
    @TableId(value = "idA2A2", type = IdType.AUTO)
    private Long idA2A2;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 修改人
     */
    private String modifiedBy;

    /**
     * 创建时间
     */
    private LocalDateTime createdDate;

    /**
     * 修改创建时间
     */
    private LocalDateTime modifiedDate;

    /**
     * 更新次数
     */
    private Long updateCount;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 是否删除
     */
    private Boolean deleted;


    @Override
    protected Serializable pkVal() {
        return this.idA2A2;
    }

}
